#pragma once
#include"RBTree.h"

template<class K>
class set
{
public:
	struct SetKeyOfT
	{
		const K& operator()(const K& k)
		{
			return k;
		}
	};
	typedef typename RBTree<K, K, SetKeyOfT>::iterator iterator;

	iterator begin()
	{
		return _t.begin();
	}
	iterator end()
	{
		return _t.end();
	}
	iterator find(const K& key)
	{
		return _t.find();
	}
	pair<iterator,bool> insert(const K& k)
	{
		return _t.insert(k);
	}
private:
	RBTree<K, K,SetKeyOfT> _t;
};